package com.hu.service;

import com.hu.entity.dto.UserRegisterDTO;
import com.hu.entity.pojo.UserEntity;
import org.springframework.stereotype.Service;

/**
 * @author HYH
 */
@Service
public interface UserService {

    /**
     * 用户注册
     * @param userRegisterDTO
     */
    void register(UserRegisterDTO userRegisterDTO);

    /**
     * 用户登录
     * @param userRegisterDTO
     */
    UserEntity login(UserRegisterDTO userRegisterDTO);

    /**
     * 根据手机号查询用户
     * @param userRegisterDTO
     * @return
     */
    UserEntity selectByPhone(UserRegisterDTO userRegisterDTO);

    /**
     * 修改用户信息
     * @param userEntity
     */
    void updateById(UserEntity userEntity);
}
